.w {
    width: 1200px;
    margin: 0 auto;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

.style_red {
    color: #c81623;
}

.shortcut {
    height: 31px;
    line-height: 31px;
    background-color: #f1f1f1;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.shortcut ul li {
    float: left;
}

.fr li {
    margin-right: 15px;
}

/* 选择所有偶数小li 这时候会发现小li在顶部对齐
    给其一个margin值 回到正中间 */
.fr li:nth-child(2n) {
    width: 1px;
    height: 12px;
    background-color: #666666;
    margin-top: 9px;
}

.header {
    position: relative;
    height: 105px;
    background-color: white;
}

.logo {
    /* 这里也可以把a变成块级
    给它logo的宽高 再url背景图 */
    position: absolute;
    top: 25px;
    width: 171px;
    height: 61px;
    font-size: 0px;
}

.search {
    position: absolute;
    top: 25px;
    left: 346px;
    width: 538px;
    height: 36px;
    border: 2px solid #b1191a;
}

.search input {
    width: 455px;
    height: 32px;
    font-size: 14px;
    line-height: 32px;
    text-indent: 1em;
}

.search button {
    float: right;
    width: 79px;
    height: 32px;
    background-color: #b1191a;
    color: white;
    font-size: 16px;
    line-height: 32px;
    text-align: center;
}

.hotwords {
    position: absolute;
    left: 346px;
    top: 60px;
    width: 540px;
    height: 30px;
    line-height: 30px;
    font-size: 12px;
    background-color: white;
}

.hotwords ul li {
    float: left;
    margin-right: 20px;
}

.hotwords ul li:first-child {
    margin-left: 10px;
}

.shopcar {
    position: absolute;
    top: 25px;
    left: 1000px;
    width: 140px;
    height: 35px;
    line-height: 35px;
    font-size: 12px;
    text-align: center;
    color: #666666;
    border: 1px solid #dfdfdf;
    background-color: #f7f7f7;
}

.icon_shopcar {
    position: absolute;
    top: 10px;
    right: 110px;
    color: #c81623;
}

.shopcar .count {
    float: left;
    position: absolute;
    top: -5px;
    /* 注意这边是右对齐 数字加了之后
    往左边走 
    如果要数字加了往右边走 就要用左对齐 */
    /* right: 35px; */
    left: 105px;
    height: 14px;
    line-height: 14px;
    background-color: #e60012;
    color: white;
    border-radius: 7px 7px 7px 0;
    padding: 0 5px;
}

/* nav模块制作 */
.nav {
    height: 47px;
    border-bottom: 2px solid #b1191a;
}

.dropdown {
    width: 210px;
    float: left;
}

.dropdown .dt {
    height: 45px;
    line-height: 45px;
    width: 210px;
    background-color: #b1191a;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.dropdown .dd {
    /* display: none; */
    width: 210px;
    height: 465px;
    background-color: #c91926;
    margin-top: 2px;
}

.dropdown .dd ul li {
    position: relative;
    height: 31px;
    line-height: 31px;
    margin-left: 2px;
    background-color: #c91926;
    transition: all 0.5s;
}

.dropdown .dd ul li:hover {
    background-color: #fff;
}

.dropdown .dd ul li:hover a {
    color: #c91926;
    /* font-size: 15px; */
    padding-left: 14px;
}

.dropdown .dd ul li a {
    color: white;
    font-size: 14px;
    padding-left: 10px;
    transition: all 0.5s;
}

/* .dropdown .dd ul li a::after {
    content: '>';
    float: right;
    margin-right: 14px;
} */
/* 这一步确保变化时右箭头消失 */
.dropdown .dd ul li:hover svg {
    display: none;
}

.dropdown .dd .iconr {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 14px;
    color: white;
    transition: all 0.5s;
}

.navitems {
    height: 47px;
    line-height: 47px;
}

/* 这里一定要记住一浮全浮 要不然上不去 */
.navitems ul li {
    float: left;
}

/* 让第一个服装城看起来远一点 */
.navitems ul li:first-child {
    margin-left: 25px;
}

.navitems ul li a {
    font-size: 16px;
    color: #666666;
    padding: 0 25px;
}


/* footer页脚部分 */
.footer {
    height: 415px;
    background-color: #f5f5f5;
    padding-top: 30px;
    /* margin-top: 30px; */
}

.mod_service {
    height: 80px;
    border-bottom: 1px solid #ccc;
}

.mod_service ul li {
    float: left;
    width: 240px;
    height: 50px;
    background-color: #f5f5f5;
    padding-left: 35px;
}

.mod_service ul li h5 {
    /* 下面两个p是典型块级元素 给h5加浮动 让文字环绕 */
    float: left;
    width: 50px;
    height: 50px;
    /* background-color: purple; */
    background: url(../images/icons.png) no-repeat;
    background-position: -252px -2px;
    margin-right: 6px;
}

.service_txt h4 {
    font-size: 14px;
    font-weight: bold;
}

.service_txt p {
    font-size: 12px;
}

.mod_help {
    height: 185px;
    border-bottom: 1px solid #ccc;
    padding-top: 20px;
    padding-left: 50px;
}

.mod_help dl {
    float: left;
    margin-right: 112px;
}

.mod_help dl:last-child {
    width: 90px;
    text-align: center;
}

.mod_help dl dd span {
    margin-top: 20px;
}

.mod_help dl dt {
    font-size: 16px;
    margin-bottom: 10px;
}

.mod_copyright {
    text-align: center;
    padding-top: 20px;
}

.mod_copyright .links {
    margin-bottom: 15px;
}

.mod_copyright .links a {
    margin: 0 10px;
}

.copyright {
    line-height: 20px;
}